# -*- coding: utf-8 -*-
from numpy import cumsum
from controllers.samples_controller import samples
from controllers.service_controller import service
# crd信息




CRD_INFO = [
    # 监听自定义资源
    {
        "Controllers": samples(kube_config="~/.kube/config", NAME="samples", CRD_GROUP="luanpeng.com",
                               CRD_VERSION="v1", CRD_NAMESPACE="samples", CRD_PLURAL="copyrators", Cumsum=True)
    },
    # 监听内部资源
    {
        "Controllers": service(kube_config="~/.kube/config", NAME="service",CRD_NAMESPACE="samples", url="/api/v1/namespaces/{namespace}/services")
    },

]
